<?php
/**
 * 常量定义文件
 *
 */

if(true === DEBUG) 
{
	error_reporting(E_ALL ^ E_NOTICE);
} 
else 
{
	error_reporting(E_ERROR);
}

if(!defined('ROOT_PATH')) 
{
	define(ROOT_PATH, substr(dirname(__FILE__), 0, -7) . '/');
}

//if(!isset($config['auth_key'])) 
{
	include(ROOT_PATH . 's_setting/settings.php');
}

//IN_SERVER
define('IN_SERVER',       true);

//软件的信息
define('SYS_VERSION',		'4.0.4');
define('SYS_PUBLISHED',     '');
define('SYS_BUILD',			'build 20130510');

//输出控制
if(!defined('GZIP')) 
{
	define('GZIP',			(bool) $config['gzip']);
}

//数据表前辍
if(!defined('TABLE_PREFIX')) 
{
	define('TABLE_PREFIX',	$config['db_table_prefix']);
}

//时区设置
if(function_exists('date_default_timezone_set')) 
{
    $config['timezone'] = ((isset($config['timezone']) && is_numeric($config['timezone'])) ? $config['timezone'] : 8);
	@date_default_timezone_set('Etc/GMT'.($config['timezone'] > 0 ? '-' : '+').(abs($config['timezone'])));
}

//全局时间戳
define('TIMESTAMP', time());

//插件开发者(0：关闭；1：开启)
define('PLUGINDEVELOPER', 1);

//UC_KEY
if(!defined('UC_KEY')) 
{
	define('UC_KEY', $config['auth_key'] . $config['safe_key']);
}

//云验证码
define("PRIVATE_KEY",(isset($config['seccode_pri_key']) ? $config['seccode_pri_key'] : 'ba654d1411c3ba4e3ed6b8b2ef29a470'));
define("PUBLIC_KEY",(isset($config['seccode_pub_key']) ? $config['seccode_pub_key'] : '98583a76eb813b39381fdb1684908dc0'));
define("YXMCURL","http://api.yinxiangma.com/api2/");
define("VERSION","YinXiangMa_Js_Pop_SDK");

?>